package com.qf.service.kucun_service;

import com.qf.bean.Commodity;
import com.qf.bean.Gnumber;
import com.qf.bean.Rstore;
import com.qf.dao.kucun_dao.RstoreDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
*
 *                                                 ___----~~~~~~~~~~~------___
 *                                   .  .   ~~//``....          __--~ ~~
 *                   -.            \_|//     |||\\  ~~~~~~::::... /~
 *                ___-==_       _-~o~  \/    |||  \\            _/~~-
 *        __---~~~.==~||\=_    -_--~/_-~|-   |\\   \\        _/~
 *    _-~~     .=~    |  \\-_    '-~7  /-   /  ||    \      /
 *  .~       .~       |   \\ -_    /  /-   /   ||      \   /
 * /  ____  /         |     \\ ~-_/  /|- _/   .||       \ /
 * |~~    ~~|--~~~~--_ \     ~==-/   | \~--===~~        .\
 *          '         ~-|      /|    |-~\~~       __--~~
 *                      |-~~-_/ |    |   ~\_   _-~            /\
 *                           /  \     \__   \/~                \__
 *                       _--~ _/ | .-~~____--~-/                  ~~==.
 *                      ((->/~   '.|||' -_|    ~~-/ ,              . _||
 *                                 -_     ~\      ~~---l__i__i__i--~~_/
 *                                 _-~-__   ~)  \--______________--~~
 *                               //.-~~~-~_--~- |-------~~~~~~~~
 *                                      //.-~~~--\
 *                               神兽保佑
 *                              代码无BUG!
*/
@Service
public class RstoreServiceImpl implements RstoreService{
    @Resource
    private RstoreDao rstoreDao;


    @Override
    public List<Rstore> QueryRstore(String ruid, Integer rtype, Integer gnid, Integer state) {
        return rstoreDao.QueryRstore(ruid, rtype,gnid,state);
    }

    @Override
    public List<Rstore> findByruid(String[] ruids) {
        return rstoreDao.findByruid(ruids);
    }

    @Override
    public Rstore findRuid(String ruid) {
        return rstoreDao.findRuid(ruid);
    }

    @Override
    public void insert(Rstore rstore) {
        rstoreDao.insert(rstore);
    }

    @Override
    public void update(Rstore rstore) {
        rstoreDao.update(rstore);
    }

    @Override
    public List<Gnumber> findnum() {
        return rstoreDao.findnum();
    }

    @Override
    public List<Commodity> findcom() {
        return rstoreDao.findcom();
    }
}
